﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Raffles.OA.Data
{
    public class BaseConfigModel
    { 
        public string TableName { get; set; } 
        public FileConfigModel FileConfig { get; set; }
        public List<TableFieldModel> tableField { get; set; }
    }

    public class FileConfigModel
    {
        public string ClassPrefix { get; set; }
        public string ClassDescription { get; set; }
        public string CreateName { get; set; }
        public string CreateDate { get; set; } 
        public int ShowMode { get; set; }
        public string AreaName { get; set; }
        public string EntityName { get; set; } 
        public string EntityParamName { get; set; } 
        public string BusinessName { get; set; }  
        public string ControllerName { get; set; }
        public string PageIndexName { get; set; }
        public string PageFormName { get; set; }
        public string NameSpace { get; set; } 
    } 
    public class TableFieldModel
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string TableColumn { get; set; }
        /// <summary>
        /// 字段类型
        /// </summary>
        public string Datatype { get; set; }
        /// <summary>
        /// 字段描述
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 是否列表显示
        /// </summary>
        public bool IsList { get; set; }
        /// <summary>
        /// 是否编辑显示
        /// </summary>
        public bool IsEdit { get; set; }
        /// <summary>
        /// 是否必填
        /// </summary>
        public bool IsRequire { get; set; }
        /// <summary>
        /// 是否查询条件
        /// </summary>
        public bool IsSearch { get; set; }
        /// <summary>
        /// 查询方式
        /// </summary>
        public string SearchType { get; set; } 
        /// <summary>
        /// 表单类型
        /// </summary>
        public string FormType { get; set; }
        /// <summary>
        /// 绑定字典Code
        /// </summary>
        public string BindDicCode { get; set; }
    }
}
